package com.drakulo.games.ais.core.delayed;

import java.math.BigDecimal;
import java.util.Map;

import com.drakulo.games.ais.core.Colony;
import com.drakulo.games.ais.core.Resource;

public class PreparationAction extends MapAction {
	private int squareX;
	private int squareY;

	public PreparationAction(Colony c, Map<Resource, BigDecimal> costMap, int duration) {
		super(c, costMap, duration, 1);
	}

	public int getX() {
		return this.squareX;
	}

	public int getY() {
		return this.squareY;
	}

	public void setX(int x) {
		this.squareX = x;
	}

	public void setY(int y) {
		this.squareY = y;
	}

	@Override
	public String getGfxKey() {
		return "terrabot";
	}
	
	public PreparationAction clone(){
		PreparationAction clone = new PreparationAction(this.getColony(), this.getCostMap(), this.getDuration());
		clone.setX(squareX);
		clone.setY(squareY);
		return clone;
	}
}
